package com.ctrip.cap.domain.benchmark;

import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.ctrip.cap.domain.benchmark.util.BenchmarkUtil;
import com.ctrip.cap.domain.benchmark.util.JsonDateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class PackageInfo extends GeneralInfo {

	public static final String ANDROID = "ANDROID";
	public static final String IOS = "IOS";

	private long Size;

	public long getSize() {
		return Size;
	}

	public void setSize(long size) {
		Size = size;
	}

	public String getPackageName() {
		return PackageName;
	}

	public void setPackageName(String packageName) {
		PackageName = packageName;
		
		setNickName(BenchmarkUtil.getPackageNickName(packageName));
		
	}

	public String getApkMainActivity() {
		return ApkMainActivity;
	}

	public void setApkMainActivity(String apkMainActivity) {
		ApkMainActivity = apkMainActivity;
	}

	public String getApkVersion() {
		return ApkVersion;
	}

	public void setApkVersion(String apkVersion) {
		ApkVersion = apkVersion;
	}

	public long getID() {
		return ID;
	}

	public void setID(long iD) {
		ID = iD;
	}

	public String getAPPType() {
		return APPType;
	}

	public void setAPPType(String aPPType) {
		APPType = aPPType;
	}

	public Date getCreateDate() {
		return CreateDate;
	}

	public void setCreateDate(Date createDate) {
		CreateDate = createDate;
	}

	public String getAdditional() {
		return Additional;
	}

	public void setAdditional(String additional) {
		Additional = additional;
	}

	public String getApkPackage() {
		return ApkPackage;
	}

	public void setApkPackage(String apkPackage) {
		ApkPackage = apkPackage;
	}

	public String getLogo() {
		return Logo;
	}

	public void setLogo(String logo) {
		Logo = logo;
	}

	public String getNickName() {
		return NickName;
	}

	public void setNickName(String nickName) {
		NickName = nickName;
	}

	private String PackageName;
	private String ApkMainActivity;
	private String ApkVersion;

	private long ID;
	private String APPType;
	private Date CreateDate;
	private String Additional;
	private String ApkPackage;
	private String Logo;
	private String NickName;

	public static void main(String args[]){
		PackageInfo info = new PackageInfo();
		info.setPackageName("tuniu.apk");
		info.getNickName();
	}
	
}
